home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 151-175 / scopedisk165 / gmc9.2 / english.docs / gmc.doc < prev    next >
Text File  |  1995-03-19  |  19KB  |  553 lines

  1.  
  2.      GMC V9.2                   Operating Manual                     Page 1
  3.  
  4.  
  5.  
  6.  
  7.                             ›4mGMC --- Console-Handler›0m 
  8.  
  9.  
  10.  
  11.      ›1mOverview 
  12.  
  13.                ›0mGMC was written to replace the already existing console
  14.           handler like  CON,  NewCON,  ConMan  etc.    Beside  of  the
  15.           wellknown features, GMC provides a number of new features to
  16.           make the life with the keyboard easier.  
  17.  
  18.                The primary mission of GMC lies  in  team-work  with  a
  19.           shell  or  the  CLI,  that  had  to work up to now with CON,
  20.           NewCON, or ConMan. Applications should  restrict  mainly  to
  21.           pure  text  output because GMC can affect the output so that
  22.           the result may look  not  very  well.    Problems  are  also
  23.           possible  if the shell isn't a real shell but only a program
  24.           that waits  for  inputs  and  starts  then  other  programs.
  25.           Instead  the  team-work  with  the standard shell or the ARP
  26.           shell is very good.  
  27.  
  28.           GMC provides the following features: 
  29.  
  30.              - Command line editing 
  31.  
  32.              - Function key assignment in four levels 
  33.  
  34.              - Command line history 
  35.  
  36.              - Online help for functions of the handler 
  37.  
  38.              - Iconify function 
  39.  
  40.              - File/Directory name completer 
  41.  
  42.              - Printout of the recent outputs to printer and window 
  43.  
  44.              - Script function for storage of all outputs 
  45.  
  46.              - Undo-Funktion for the command line 
  47.  
  48.              - Command line finish without execution 
  49.  
  50.              - Actual directory path in window title 
  51.  
  52.              - Beep function on prompt display 
  53.  
  54.              - Close gadget function for Kickstart 2.0 
  55.  
  56.              - Local and global configuration 
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.      GMC V9.2                                                      21.07.90
  69.  
  70.  
  71.      GMC V9.2                   Operating Manual                     Page 2
  72.  
  73.  
  74.      ›1mCommand line editing 
  75.  
  76.                ›0mThe  command  line  editing  bases  on  the   following
  77.           functions: 
  78.  
  79.  
  80.        Delete functions 
  81.  
  82.           Delete character before cursor (1) 
  83.           Backspace 
  84.  
  85.           Delete character under cursor (2) 
  86.           Del 
  87.  
  88.           Delete from cursor position to start of word (3) 
  89.           Ctrl-Backspace 
  90.  
  91.           Delete from cursor position to end of word (4) 
  92.           Ctrl-Del 
  93.  
  94.           Delete from cursor position to start of line (5) 
  95.           Shift-Backspace 
  96.  
  97.           Delete from cursor position to end of line (6) 
  98.           Shift-Del 
  99.  
  100.           Delete the whole line (7) 
  101.           Alt-Backspace,Alt-Del 
  102.  
  103.  
  104.        Cursor movement 
  105.  
  106.           Character left/right (1/2) 
  107.           "Cursor left/right" (also with Alt key) 
  108.  
  109.           Word left/right (3/4) 
  110.           Ctrl-"Cursor left/right" 
  111.  
  112.           Start/End of line(5/6) 
  113.           Shift-"Cursor left/right" 
  114.  
  115.  
  116.        Insert/Overwrite mode 
  117.  
  118.                The  default  mode (insert) can be toggled only for the
  119.           current line or durable.  Toggle for  the  current  line  is
  120.           made by  Ctrl-A.    After  RETURN is pressed the old mode is
  121.           activated.  
  122.  
  123.                The mode  can  be  changed  durable  with  SetGMC  (see
  124.           SetGMC.Doc).  
  125.  
  126.                In  word  movement  and word delete, words are not only
  127.           separated by spaces but also by ':' '/' '.' '(' ')' and '|'.
  128.           With this feature quick editing of  pathnames  is  possible.
  129.           If  the  cursor  is  placed  on  or  behind one of the seven
  130.           separators only the separator will be erased.  
  131.  
  132.                The above listed line edit functions can be  assign  to
  133.           different  keys  with  SetGMC.  The  list  above is only the
  134.           default assignment.  The numbers in brackets  refer  to  the
  135.  
  136.  
  137.      GMC V9.2                                                      21.07.90
  138.  
  139.  
  140.      GMC V9.2                   Operating Manual                     Page 3
  141.  
  142.  
  143.           belonging functions.  
  144.  
  145.  
  146.  
  147.      ›1mFunctionkey assignment 
  148.  
  149.                ›0mAll  function  keys  can  be  assigned  in  four levels
  150.           (alone, or with pressed Shift,  Ctrl,  or  Alt  key).    The
  151.           assignment is done again with SetGMC.  
  152.  
  153.                The function keys can also be switched on and off.  The
  154.           settings  are  not touched by switching the function keys on
  155.           or off.  
  156.  
  157.  
  158.  
  159.      ›1mCommand line history 
  160.  
  161.                ›0mAll commands are stored (maximum 2048 Bytes, each  line
  162.           needs  10  Bytes  extra)  and  can  be recalled in different
  163.           ways.  The last typed line is  stored  at  the  end  of  the
  164.           list.   If  the  list is too long, the lines at the start of
  165.           the list are shifted out.  Lines with the length 1 won't  be
  166.           saved in the command line history.  
  167.  
  168.             -  With  "cursor  up/down"  the  list  will  be  shown  in
  169.                direction start/end of the list.  
  170.  
  171.             -  With  Shift-"cursor  up"  the  list  will  be  searched
  172.                through  line-wise  on  basis  of the partial line as a
  173.                pattern given-in up to this point in time.  
  174.  
  175.             -  With Shift-"cursor down" a jump behind the end  of  the
  176.                list will be performed.  
  177.  
  178.  
  179.  
  180.      ›1mOnline help functions 
  181.  
  182.                ›0mThe  help  key  (alone or together with Shift, Ctrl, or
  183.           Alt) shows four different helps: 
  184.  
  185.             -  Help: 
  186.                Display of the functions of the cursor keys,  Backspace
  187.                and Del key, and the additional help functions.  
  188.  
  189.             -  Shift-Help 
  190.                Display  of  the  first  characters of the function key
  191.                settings.  
  192.  
  193.             -  Ctrl-Help 
  194.                Output of information how  to  set  function  keys  and
  195.                insert/overstrike mode.  
  196.  
  197.             -  Alt-Help 
  198.                Display of  the command line history with numbers.  The
  199.                output can be stopped and  continued  by  pressing  any
  200.                key.  It can be breaked by pressing RETURN.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.      GMC V9.2                                                      21.07.90
  207.  
  208.  
  209.      GMC V9.2                   Operating Manual                     Page 4
  210.  
  211.  
  212.      ›1mIconify function 
  213.  
  214.                ›0mThe Iconify function can be assigned with SetGMC to any
  215.           function key.    For  that  purpose the function key must be
  216.           assigned to ICONIFY.  
  217.  
  218.                The Iconify function will be executed immediately.  The
  219.           produced small window can be shifted around and brought back
  220.           to its old size by a double click.  If the window is in  the
  221.           reduced size,  output  is  possible.    The  window  will be
  222.           inactive so no wrong input is possible.  The contents of the
  223.           window won't be affected.  
  224.  
  225.                The iconify function is  disabled  if  GMC  runs  under
  226.           dos.library > 34 (Kickstart 1.4/2.0).  
  227.  
  228.  
  229.  
  230.      ›1mFile›0m/›1mDirectory name completer 
  231.  
  232.                ›0mThe command line can be expanded by the new function of
  233.           the tab key.  
  234.  
  235.           When  TAB  is  pressed,  an  interpretation of the currently
  236.           given-in command line is performed.  First the line is saved
  237.           from the last space or from the start to its end.  This copy
  238.           will only be overwritten when the the  line  is  changed  or
  239.           finished by RETURN.  
  240.  
  241.                The  stored  part  of the line is interpreted as a path
  242.           and/or filename.  If the path contains no root directory the
  243.           current directory of the CLI or Shell process is used.    As
  244.           process   only   that   process  is  used  that  opened  the
  245.           input/output stream the first time.   The  part  behind  the
  246.           last  '/'  or the ':' is used as the pattern to select files
  247.           or directories.    The  directory  refers  by  the  path  is
  248.           searched through.  
  249.  
  250.                If  a file is found which has the same beginning as the
  251.           pattern the command line will be completed with  this  file.
  252.           By  pressing  the  TAB  key  once  more  the  search will be
  253.           continued.  If no other files are found the old command line
  254.           is displayed again.  
  255.  
  256.                A '/' is appended to directory names.  
  257.  
  258.                If the line ends with ':', '/', or ' ' all  files  will
  259.           be shown.   The C: directory will be searched through if the
  260.           command contains no ' ' and also no ':' and no '/'.  
  261.  
  262.                The  comparison  of  pattern  and  files  is  not  case
  263.           sensitive.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.      GMC V9.2                                                      21.07.90
  276.  
  277.  
  278.      GMC V9.2                   Operating Manual                     Page 5
  279.  
  280.  
  281.           Examples 
  282.  
  283.           Kommandozeile vor TAB | ergibt mit Alt-TAB 
  284.           ----------------------+------------------------ ------- 
  285.               "ty"              | all files/dirs in C:, that 
  286.                                 | start with "ty" 
  287.                                 | 
  288.               "type s:st"       | e.g.  "type s:startup-sequence" 
  289.                                 | 
  290.               "type "           | all files/dirs in the actual 
  291.                                 | directory 
  292.                                 | 
  293.               "type abc"        | all files/dirs, that start 
  294.                                 | with "abc" in actual directory 
  295.                                 | 
  296.               "list a/b/c"      | all files/dirs, that start 
  297.                                 | with "c" in the subdirectory 
  298.                                 | "a/b" of the current directory 
  299.                                 | 
  300.  
  301.  
  302.           Beside Alt the other qualifiers have the following meaning: 
  303.  
  304.  
  305.             -  TAB: 
  306.                Only files are shown, but no info files.  
  307.  
  308.             -  Shift-TAB: 
  309.                Only info files are shown.  
  310.  
  311.             -  Ctrl-TAB: 
  312.                Only directory are shown.  
  313.  
  314.             -  Alt-TAB: 
  315.                Everything is shown.  
  316.  
  317.  
  318.  
  319.      ›1mPrintout of the recent outputs to printer and window 
  320.  
  321.                ›0mThe  printout function is assigned to a function key in
  322.           the same way as the iconify function (with  PRT_SCR  instead
  323.           of ICONIFY).  
  324.  
  325.                With SetGMC it is possible to defined the page lenth of
  326.           the printer at the beginning of every printout.  
  327.  
  328.                The  buffer  size  is  4KByte  at  the  startup  of the
  329.           handler.  This can also be changed by SetGMC.  
  330.  
  331.                The buffer can also be displayed in the window.    With
  332.           Ctrl-"cursor   up"   the  start  of  the  buffer  is  shown.
  333.           Ctrl-"cursor down"  shows  the  next  page  in  the  buffer,
  334.           Alt-"cursor down" shows the next line.  
  335.  
  336.                At  the  bottom  of  the  window  the percentage of the
  337.           displayed buffer is shown.  
  338.  
  339.                If a character shall be output to the window or  a  key
  340.           is pressed, the buffer output scrolls up to its end.  
  341.  
  342.  
  343.  
  344.      GMC V9.2                                                      21.07.90
  345.  
  346.  
  347.      GMC V9.2                   Operating Manual                     Page 6
  348.  
  349.  
  350.      ›1mScript function for storage of all outputs 
  351.  
  352.                ›0mGMC supports  a  script function.  With this ability it
  353.           is possible to record all  outputs  including  the  echo  of
  354.           inputs in a file.  
  355.  
  356.                The  function  is  activated by SetGMC. The script file
  357.           remains opened until the window is closed or  it  is  closed
  358.           explicitly by SetGMC or another script file is opened.  
  359.  
  360.  
  361.  
  362.      ›1mUndo function for the command line 
  363.  
  364.                ›0mBefore  every  change in the command line its old state
  365.           is saved.  It can be brought back by pressing the  ESC  key.
  366.           With  the  aid  of  this  buffer  the  command  line is also
  367.           restored after the window was resized.  
  368.  
  369.                The buffer allows to get back a command line that isn't
  370.           finished yet and is modified by pressing the  help  key,  by
  371.           executing a command line history or the window output recall
  372.           function or an unwished delete function.  
  373.  
  374.                By  pressing  the  ESC  key  the contents of the actual
  375.           command line and the buffer is exchanged.  The cursor is set
  376.           also to its old position.  
  377.  
  378.  
  379.  
  380.      ›1mCommand line finish without execution 
  381.  
  382.                ›0mTo avoid that a started  command  line  must  be  again
  383.           deleted  because  one had recognized another command must be
  384.           executed first, the RETURN key has now two functions.  
  385.  
  386.                Without Shift key there is no change.  With  the  Shift
  387.           key  the  command  line  is  only stored in the command line
  388.           history but not sent  to  the  Shell/CLI.    Now  the  other
  389.           command  can  be  typed and executed in the standard way and
  390.           then one can recall the old command by pressing  "cursor-up"
  391.           twice.  
  392.  
  393.  
  394.  
  395.      ›1mActual directory path in window title 
  396.  
  397.                ›0mBeside   the  normal  title  from  the  startup  window
  398.           description it  is  also  possible  to  display  the  actual
  399.           directory path  in  the  window title section.  This special
  400.           function like others and the following beep function must be
  401.           switched on explicitly by SetGMC.  
  402.  
  403.  
  404.  
  405.      ›1mBeep function on prompt display 
  406.  
  407.                ›0mIf this function is activ, on the reception of  a  READ
  408.           packet  the time is appointed since the last READ packet was
  409.           replied.  If this interval is greater than a given  value  a
  410.           sound signal is sent.  It is possible to determine that this
  411.  
  412.  
  413.      GMC V9.2                                                      21.07.90
  414.  
  415.  
  416.      GMC V9.2                   Operating Manual                     Page 7
  417.  
  418.  
  419.           should  happened only if the GMC window isn't the front most
  420.           on the front most screen.  There will  be  no  beep  in  RAW
  421.           mode.  
  422.  
  423.  
  424.  
  425.      ›1mClose gadget function for Kickstart 2›0m.›1m0 
  426.  
  427.                ›0mUnder  Kickstart  2.0 the Shell supports a close gadget
  428.           in the console window.  Clicking on the close gadget has the
  429.           same effect as Ctrl-\. The new Shell  reacts  with  a  CLOSE
  430.           packet for  the  console handler.  The close gagdet is added
  431.           if  "/CLOSE"  is  appended  to  the  title  in  the   window
  432.           description.  
  433.  
  434.  
  435.  
  436.      ›1mLocal and global configuration 
  437.  
  438.                ›0mAs   repeatedly   mentioned,   GMC   processes  can  be
  439.           configurated in  a  local  and  a  global   way.      Global
  440.           configuration  has  effcts  only to those GMC processes that
  441.           are started  after  the  configuration.    Therefore  global
  442.           configuration should be made in the startup-sequence.  Local
  443.           configuration  affects only the GMC process in its window it
  444.           is executed.  
  445.  
  446.                A  detailed  description  of  the  program  SetGMC   is
  447.           available with the enclosed operating manual.  
  448.  
  449.  
  450.  
  451.      ›1mMiscellaneous 
  452.  
  453.                ›0mCtrl  keys, except Ctrl-A, Ctrl-C..F, Ctrl-M and Ctrl-\
  454.           have no function and aren't sent to the Shell/CLI.  
  455.  
  456.                In RAW mode all keystrokes (except Ctrl-C..F)  will  be
  457.           transmitted without  any  translation.    In  CON  mode  the
  458.           following "Report" messages  from  the  console.device  will
  459.           also be passed through: 
  460.  
  461.             -  Cursor Position 
  462.  
  463.             -  Window Bounds 
  464.  
  465.             -  Raw Events (except NEWSIZE-,CLOSE- und Raw Key Event) 
  466.  
  467.  
  468.                GMC don't work with the module terminal.mod of M2Amiga.
  469.           In  this case GMC causes an error during the startup and the
  470.           window will be closed again.  This happens  always  then  if
  471.           someone  tries  to  add  a close gadget and it isn't the way
  472.           that is taken under Kickstart 2.0.  
  473.  
  474.                On the output of a script file  one  should  take  care
  475.           that   it  could  contain  hidden  report  request  for  the
  476.           console.device.  If these reports are  sent  a  second  time
  477.           there  is  nobody  who is interested and so they are sent to
  478.           the Shell/CLI. Therefore it can happen that the next command
  479.           isn't understood.    Scrolling  down  the  window  cause  no
  480.  
  481.  
  482.      GMC V9.2                                                      21.07.90
  483.  
  484.  
  485.      GMC V9.2                   Operating Manual                     Page 8
  486.  
  487.  
  488.           problems in  this  way.    But  script file should be better
  489.           displayed by editors or text display programs.  
  490.  
  491.  
  492.  
  493.      ›1mInstallation 
  494.  
  495.                ›0mFirst of all the files GMC-Handler and ExtFuncProc must
  496.           be copied in the L: directory.   Then  the  mountlist  entry
  497.           descriped  below  should be inserted in the mountlist in the
  498.           DEVS: directory.  
  499.  
  500.                GMC is installed by "Mount GMC:". This  command  should
  501.           be executed in the startup-sequence.  
  502.  
  503.                There  are  several ways to use GMC: instead of CON: or
  504.           NEWCON:. NewCLI, NewShell, or AShell can be patched or  GMC:
  505.           must be given on start (NewShell GMC:xxx).  
  506.  
  507.                Another  possibility  is  to replace GMC: by NEWCON: in
  508.           the mountlist and install GMC: as NEWCON:. Then the patch or
  509.           the window specifications can be omitted.  
  510.  
  511.                The last possibility is to remove CON: by  the  command
  512.           "Assign  CON:  remove"  and the installation of GMC: as CON:
  513.           with "Mount CON:". In the mountlist must stand CON:  instead
  514.           of  GMC:.  The  installation as CON: won't work with M2Amiga
  515.           programs which used the module terminal.mod.  
  516.  
  517.  
  518.        MountList entry 
  519.  
  520.           GMC: 
  521.                  Handler = L:GMC-Handler 
  522.                  Stacksize = 2500 
  523.                  Priority = 5 
  524.                  GlobVec = -1 
  525.           # 
  526.  
  527.  
  528.  
  529.      ›1mAcknowledgement 
  530.  
  531.                ›0mSpecial thanks to Volker Rudolph, Joachim  Strubel  and
  532.           Jörg  Mayer for tests and suggestions and to all people that
  533.           use and support  GMC  (if  there  is  someone  outside  West
  534.           Germany) and paid the shareware fee.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.      GMC V9.2                                                      21.07.90
  552.  
  553.